import { MeetingInfo, FetchCalendarListParam } from './interface'

export function transMeetingListParam(list: FetchCalendarListParam[]): MeetingInfo[] {
	return list.map((item) => {
		return {
			meeting_moid: item.meeting_id,
			name: item.name,
			duration: item.duration,
			state: item.state,
			start_time: item.start_time,
			end_time: item.end_time,
			organizer_name: item.organizer_name,
			organizer_moid: item.organizer_moid,
			week_day: item.week_day,
			permanent_meeting: item.permanent_meeting,
			work_phone: item.work_phone,
			mobile_phone: item.mobile_phone,
		}
	})
}
